package vn.net.click.faces.controller;

import java.util.ArrayList;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

import vn.net.click.model.ThucUong;
import vn.net.click.service.ManagementService;
@ManagedBean(name="thucUongMgrController",eager=true)
@RequestScoped
public class ThucUongMgrController {
	@ManagedProperty(value="#{managementService}")
	private ManagementService managementService;

	public ManagementService getManagementService() {
		return managementService;
	}

	public void setManagementService(ManagementService managementService) {
		this.managementService = managementService;
	}

	public ArrayList<ThucUong> getThucUongs() {
		
		return managementService.getAllThucUongs();
	}

	
	
}
